# -*- coding:utf-8 -*-
import os
import oss2
from settings import Config

access_key_id = os.getenv('OSS_TEST_ACCESS_KEY_ID', Config.ALIYUN_ACCESS_ID)
access_key_secret = os.getenv('OSS_TEST_ACCESS_KEY_SECRET', Config.ALIYUN_SECRET_ACCESS_KEY)
bucket_name = os.getenv('OSS_TEST_BUCKET', Config.ALIYUN_BUCKET)
endpoint = os.getenv('OSS_TEST_ENDPOINT', Config.ALIYUN_HOST)
object = "uploads/product/icon.png"
auth = oss2.Auth(access_key_id, access_key_secret)
conn_bucket = oss2.Bucket(oss2.Auth(access_key_id, access_key_secret), endpoint, bucket_name)
